//
//  TencentManager.h
//  TecentDemo
//
//  Created by leo on 9/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ManagerAdapter.h"
#import "BaseManager.h"



@interface TencentManager : BaseManager {


}


+ (id)instance;
-(id)initWithDefault;
//public
- (NSArray *)getHomeMsgWithPageFlage:(PageFlag)aPageFlag 
                             nReqNum:(NSInteger)aReqNum;


//private
- (NSArray *)getHomeMsgWithResultType:(ResultType)aResultType 
                            pageFlage:(PageFlag)aPageFlag 
                              nReqNum:(NSInteger)aReqNum;

- (NSURLConnection *)getHomeMsgWithAsync:(ResultType)aResultType 
                               pageFlage:(PageFlag)aPageFlag 
                                 nReqNum:(NSInteger)aReqNum 
                                delegate:(id)aDelegate;

-(NSString *)getUserTimelineWihtResultType:(ResultType)aResultType 
                                 pageFlage:(PageFlag)aPageFlag
                                  PageTime:(long)pagetime
                                   nReqNum:(NSInteger)aReqNum
                                    Lastid:(long)lastid
                                      Name:(NSString *)name;

- (NSString *)publishMsgWithConsumerKey:(NSString *)aConsumerKey 
						 consumerSecret:(NSString *)aConsumerSecret 
						 accessTokenKey:(NSString *)aAccessTokenKey 
					  accessTokenSecret:(NSString *)aAccessTokenSecret 
								content:(NSString *)aContent 
							  imageFile:(NSString *)aImageFile 
							 resultType:(ResultType)aResultType;

//
- (void)parseTokenKeyWithResponse:(NSString *)response;

- (void)saveDefaultKey;

- (void)loadDefaultKey;
//+ (id)instance;
@end
